package xiangmu1;
public class User {
    //封装
    private String name;
    private int passed;
    private static double monny;
    private int day;
//无参构造方法
    public User(){

    }
//有参构造方法
    public User(String name, int passed) {
        this.name = name;
        this.passed = passed;
    }
//set和get方法
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getPassed() {
        return passed;
    }

    public void setPassed(int passed) {
        this.passed = passed;
    }

    public static double getMonny() {
        return monny;
    }

    public static void setMonny(double monny) {
        User.monny = monny;
    }

    public int getDay() {
        return day;
    }

    public void setDay(int day) {
        this.day = day;
    }
}
